function get5ff(){
    let  lh5ff=$(".lh5ff").val()
    let url = '/ljx/getBy5/'+lh5ff;
    $.ajax({
        url: url,
        data: {lh5ff:lh5ff},
        type: "GET",
        success: function (data) {
            $("#longhao5ff").text(data.lh5)
            $("#ch5ff-m").text(data.ch5m)
            $("#ch5ff-f").text(data.ch5f)
            $("#lh4ff-f").text(data.lh4f)
            $("#lh4ff-m").text(data.lh4m)
            $("#level5-ff").text(data.level)
            $("#beizhu5ff").text("5代母-母")
            $(".lh4fff").val(data.lh4f)
            $(".lh4ffm").val(data.lh4m)

            $("#get4fff").trigger('click');
            $("#get4ffm").trigger('click');
            $("#get4fmf").trigger('click');
            $("#get4fmm").trigger('click');


            // alert(data.lh7)
            // window.location.href=url2;

        },
        dataType: "json"
    });
};
function get5fm(){
    let  lh5fm=$(".lh5fm").val()
    // alert(lh6f)
    // alert(ch8)
    let url = '/ljx/getBy5/'+lh5fm;
    // let url2 = '/ljx/getBy8/'+ch8;
    $.ajax({
        url: url,
        data: {lh5fm:lh5fm},
        type: "GET",
        success: function (data) {
            $("#longhao5fm").text(data.lh5)
            $("#ch5fm-m").text(data.ch5m)
            $("#ch5fm-f").text(data.ch5f)
            $("#lh4fm-f").text(data.lh4f)
            $("#lh4fm-m").text(data.lh4m)
            $("#level5-fm").text(data.level)
            $("#beizhu5fm").text("5代母-公")
            $(".lh4fmf").val(data.lh4f)
            $(".lh4fmm").val(data.lh4m)
            // alert(data.lh7)
            // window.location.href=url2;
            $("#get4fff").trigger('click');
            $("#get4ffm").trigger('click');
            $("#get4fmf").trigger('click');
            $("#get4fmm").trigger('click');

        },
        dataType: "json"
    });
};
//5代母-公
function get5mf(){
    let  lh5mf=$(".lh5mf").val()
    // alert(lh6f)
    // alert(ch8)
    let url = '/ljx/getBy5/'+lh5mf;
    // let url2 = '/ljx/getBy8/'+ch8;
    $.ajax({
        url: url,
        data: {lh5mf:lh5mf},
        type: "GET",
        success: function (data) {
            $("#longhao5mf").text(data.lh5)
            $("#ch5mf-m").text(data.ch5m)
            $("#ch5mf-f").text(data.ch5f)
            $("#lh4mf-f").text(data.lh4f)
            $("#lh4mf-m").text(data.lh4m)
            $("#level5-mf").text(data.level)
            $("#beizhu5mf").text("5代公-母")
            $(".lh4mff").val(data.lh4f)
            $(".lh4mfm").val(data.lh4m)
            // alert(data.lh7)
            // window.location.href=url2;
            $("#get4mmf").trigger('click');
            $("#get4mmm").trigger('click');
            $("#get4mff").trigger('click');
            $("#get4mfm").trigger('click');

        },
        dataType: "json"
    });
};
//5代公公
function get5mm(){
    let  lh5mm=$(".lh5mm").val()
    // alert(lh6f)
    // alert(ch8)
    let url = '/ljx/getBy5/'+lh5mm;
    // let url2 = '/ljx/getBy8/'+ch8;
    $.ajax({
        url: url,
        data: {lh5mm:lh5mm},
        type: "GET",
        success: function (data) {
            $("#longhao5mm").text(data.lh5)
            $("#ch5mm-m").text(data.ch5m)
            $("#ch5mm-f").text(data.ch5f)
            $("#lh4mm-f").text(data.lh4f)
            $("#lh4mm-m").text(data.lh4m)
            $("#level5-mm").text(data.level)
            $("#beizhu5mm").text("5代公-公")
            $(".lh4mmf").val(data.lh4f)
            $(".lh4mmm").val(data.lh4m)
            // alert(data.lh7)
            // window.location.href=url2;
            $("#get4mmf").trigger('click');
            $("#get4mmm").trigger('click');
            $("#get4mff").trigger('click');
            $("#get4mfm").trigger('click');

        },
        dataType: "json"
    });
};